package com.lxw.oa.service.serviceImpl;


import com.lxw.oa.mapper.ResourceMapper;
import com.lxw.oa.service.ResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service("resourceService")
@Transactional
public class ResourceServiceImpl implements ResourceService {
    @Autowired
    private ResourceMapper resourceMapper;

    @Override
    public void addModalMessage(String uuid_file_name,String fileName, String nameEnd, String mark, String userName, String dateString) {
        resourceMapper.addModalMessage(uuid_file_name,fileName,nameEnd,mark,userName,dateString);
    }

    @Override
    public List<Map<String, Object>> getOneSqlData(String sql) {
        return resourceMapper.getOneSqlData(sql);
    }
}
